/**
 * 
 */
package com.avocado.base.dto.resources;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class ResourcesDto {

	@NotBlank(message = "操作失败,名称不能为空!")
	@NotNull(message ="操作失败,名称不能为空!")
	private String name;

	@NotBlank(message = "操作失败,类型不能为空!")
	@NotNull(message ="操作失败,类型不能为空!")
	private String type;

	@NotNull(message ="操作失败,父节点不能为空!")
	private Long parentId;

	@NotNull(message ="操作失败,排序不能为空!")
	@Min(value = 1L,message = "排序最小不能小于1")
	@Max(value = Integer.MAX_VALUE,message = "排序最大不不能大于"+Integer.MAX_VALUE)
	private Integer sortOrder;



}
